Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

metrics: use tidb_cluster label get variable values #724

Merged
merged 1 commit into from
Jan 27, 2021

Conversation

zjj2wry
Copy link
Contributor

@zjj2wry zjj2wry commented Jan 27, 2021

What problem does this PR solve?

The latest version of tidb-operator will use the instance name as the cluster label. The previous expression uses the cluster label got the value of the tidb_cluster variable. It will cause Grafana can not to display the data.

What is changed and how it works?

Check List

Tests

  • No code

Code changes

  • Has exported function/method change
  • Has exported variable/fields change
  • Has interface methods change
  • Has persistent data change

Side effects

  • No effects

Related changes

  • Need to cherry-pick to the release branch
  • Need to update the documentation

Release Note

  • No release note

@zjj2wry
Copy link
Contributor Author

zjj2wry commented Jan 27, 2021

/label needs-cherry-pick-4.0

@overvenus
Copy link
Member

/lgtm

@ti-srebot ti-srebot added the status/LGT1 LGTM1 label Jan 27, 2021
@kennytm
Copy link
Collaborator

kennytm commented Jan 27, 2021

/lgtm

@ti-srebot ti-srebot added status/LGT2 LGTM2 and removed status/LGT1 LGTM1 labels Jan 27, 2021
@kennytm kennytm merged commit 3d356fc into pingcap:master Jan 27, 2021
ti-srebot pushed a commit to ti-srebot/br that referenced this pull request Jan 27, 2021
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Contributor

cherry pick to release-4.0 in PR #725

3pointer pushed a commit that referenced this pull request Jan 27, 2021
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>

Co-authored-by: Jiajin Zheng <zhengjiajin@pingcap.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants